//index.js
//获取应用实例
const app = getApp()

Page({
	data: {
		customerName:"",
		customerAddress:"",
		latitude:"",
		longitude:"",
		markers:"",
	},
	onLoad: function() {
		let _this = this;
		wx.getStorage({
		 	key: 'customerInfo',
		  	success: function(res) {
		  		let mark = {
					iconPath: "../../images/mark.png",
					id: res.data.id,
					latitude: res.data.latitude,
					longitude: res.data.longitude,
					width: 50,
					height: 50,
				}
				_this.setData({
					markers: [mark],
					latitude: res.data.latitude,
					longitude: res.data.longitude,
					customerName:res.data.customerName,
					customerAddress:res.data.customerAddress
				});
		  	} 
		})
		
	}
})